Solved Question [40 Points] Write A Python Function

Solved Question [40 Points] Write A Python Function